export interface knowledgeItem {
    id: string;
    title: string;
    cover: string;
    summary: string;
    content: string;
    html: string;
    toc: string;
    status: string;
    views: number;
    likes: number;
    isRecommended: boolean;
    needPassword: boolean;
    totalAmount?: any;
    isPay: boolean;
    isCommentable: boolean;
    publishAt: string;
    createAt: string;
    updateAt: string;
    category: Category;
    tags: Category[];
  }
  
  interface Category {
    id: string;
    label: string;
    value: string;
    createAt: string;
    updateAt: string;
  }
  
  
  export interface IknowledgeDetail {
    id: string;
    parentId?: any;
    order: number;
    title: string;
    cover: string;
    summary: string;
    content?: any;
    html?: any;
    toc?: any;
    status: string;
    views: number;
    likes: number;
    isCommentable: boolean;
    publishAt: string;
    createAt: string;
    updateAt: string;
    children: IknowledgeDetailChild[];
  }
  
  export interface IknowledgeDetailChild {
    id: string;
    parentId: string;
    order: number;
    title: string;
    cover?: any;
    summary?: any;
    content: string;
    html: string;
    toc: string;
    status: string;
    views: number;
    likes: number;
    isCommentable: boolean;
    publishAt: string;
    createAt: string;
    updateAt: string;
  }